package top.air.backend.task.model.query;

import java.io.Serial;
import java.io.Serializable;
import java.time.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;

/**
 * 设备资源查询条件
 *
 * @author 文艺倾年
 * @since 2025/03/25 16:25
 */
@Data
@Schema(description = "设备资源查询条件")
public class DeviceInfoQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    @Query(type = QueryType.EQ)
    private String name;

    /**
     * 设备类别
     */
    @Schema(description = "设备类别")
    @Query(type = QueryType.EQ)
    private Integer category;

    /**
     * 型号
     */
    @Schema(description = "型号")
    @Query(type = QueryType.EQ)
    private String modelNumber;

    /**
     * 出厂编号
     */
    @Schema(description = "出厂编号")
    @Query(type = QueryType.EQ)
    private String factoryNumber;

    /**
     * 购置时间
     */
    @Schema(description = "购置时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime buyDate;
}
